<%@ Control Language="C#" AutoEventWireup="true" CodeFile="editpost.ascx.cs" Inherits="forums_controls_posts_editpostl" %>
<%@ Register Src="../misc/Header.ascx" TagName="Header" TagPrefix="uc1" %>
<%@ Register Src="../../../controls/misc/FCKEditor.ascx" TagName="FCKEditor" TagPrefix="uc2" %>
<div class="forum_postbox">
    <uc1:Header ID="Header1" runat="server" />
    <asp:MultiView ID="mviewPost" runat="server">
        <asp:View ID="viewPost" runat="server">
            <p>
            Subject:<asp:CustomValidator ID="valSubject" runat="server" ControlToValidate="txtSubject"
                    ErrorMessage="You have to have a subject." OnServerValidate="valSubject_ServerValidate"
                    ValidateEmptyText="True" ValidationGroup="EditPost"></asp:CustomValidator><br />
            <asp:TextBox runat="server" ID="txtSubject" Width="300px" ValidationGroup="EditPost" MaxLength="100" />
                </p>
            <p>
            Post:<br />
            <uc2:FCKEditor ID="txtPost" runat="server"
                Width="700px"
                Height="500px"/>
            </p>
            <p>
            <asp:Button runat="server" ID="btnSubmit" Text="Save" OnClick="btnSubmit_Click" ValidationGroup="EditPost" />
            <asp:Button runat="server" ID="btnDelete" Text="Delete" Visible="false" OnClick="btnDelete_Click" />
            </p>            
        </asp:View>
        <asp:View ID="viewNoThread" runat="server">
            You can't edit this post.</asp:View>
        <asp:View ID="viewDeleted" runat="server">
            <p>
            Post has been successfully deleted.
            </p>
        </asp:View>
    </asp:MultiView>
</div>